package com.synjones.zeuscloudweb.dao;

import com.synjones.zeus.model.authorize.AuthorizeInfo;
import com.synjones.zeus.model.web.LisenceBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Think 2018/5/25 1:25
 * 设备授权
 */
@Mapper
public interface AuthorizeDaoMapper {

    List<AuthorizeInfo> getAuthorizeList(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("orderColumn") String orderColumn, @Param("orderDir")
            String orderDir, @Param("authorizeInfo") AuthorizeInfo authorizeInfo);

    List<AuthorizeInfo> getLisenceList(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("orderColumn") String orderColumn, @Param("orderDir")
            String orderDir, @Param("authorizeInfo") AuthorizeInfo authorizeInfo);

    void deleteAuthorizeByImei(String imei);

    void deleteLisenceById(String id);

    int insertLisence(LisenceBean lisenceBean);

    LisenceBean selectLisenceByOrgCode(String orgCode);

    LisenceBean selectLisenceById(String id);

    void updateLisence(LisenceBean lisenceBean);
}
